package extend.exer02;

/**
 * @author shkstart
 * @date 2022/5/9 - 21:28
 */
public class CylinderTest {
    public static void main(String[] args) {
        Cylinder cylinder = new Cylinder();

        cylinder.setRadius(3);
        cylinder.setLength(6);
        System.out.println("圆柱的体积为：" + cylinder.findVolume());
//       没有重写findArae()时
//        System.out.println("底面圆的面积为：" + cylinder.findArea());
//       重写findArea()后
        System.out.println("圆柱的表面积为：" + cylinder.findArea());


    }
}
